<?php

$csrfHtml = \yii\helpers\Html::csrfMetaTags();
?>
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <?=$csrfHtml?>
    <title>BootStrap Table使用</title>
    <script src="bootstrap-table/jquery.min.js"></script>

    <script src="bootstrap-table/bootstrap.js"></script>
    <link href="bootstrap-table/bootstrap.css" rel="stylesheet" />


</head>
<body>
<div class="panel-body" style="padding-bottom:0px;">
    <div class="panel panel-default">
        <div class="panel-heading">查询条件</div>
        <div class="panel-body">
            <form id="formSearch" class="form-horizontal">
                <div class="form-group" style="margin-top:15px">
                    <label class="control-label col-sm-1" for="txt_search_departmentname">微信名称</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" id="wx_name">
                    </div>
                    <label class="control-label col-sm-1" for="txt_search_statu">状态</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" id="txt_search_statu">
                    </div>
                    <div class="col-sm-4" style="text-align:left;">
                        <button type="button" style="margin-left:50px" id="btn_query" class="btn btn-primary">查询</button>
                    </div>
                </div>
            </form>
        </div>
    </div>


    <table id="tb_reb-user" class="table">
        <thead>
        <tr>
            <th>返利用户微信名称</th>
            <th>返利用户微信头像</th>
            <th>查看修改</th>
        </tr>
        </thead>
        <tbody>
            <?php foreach($shareRebUserARR as $k=>$v){ ?>
                <tr>
                    <td><?=$v['wx_name']?></td>
                    <td><img width="80px" src="<?=$v['wx_images']?>" onerror="this.src='images/qqfenx.png'"></td>
                    <td>
                        <div id="toolbar" class="btn-group">
                            <a href="?r=orders/ordergoods/rebdetail&wx_name=<?=$v['wx_name']?>&wx_images=<?=$v['wx_images']?>&share_reb_user_id=<?=$v['share_reb_user_id']?>">
                                <button id="btn_edit" type="button" class="btn btn-default">
                                    <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>查看修改
                                </button>
                            </a>
                        </div>
                    </td>
                </tr>
            <?php }?>
        </tbody>
    </table>
</div>
</body>
</html>